package sanshui.system.trade.factory.trade.strategy;

import sanshui.system.trade.factory.data.Bar;
import sanshui.system.trade.factory.trade.TradeSystemContext;
import sanshui.system.trade.factory.trade.indicator.IndicatorResult;
import sanshui.system.trade.model.TradeAccountModel;

import java.util.List;
import java.util.Map;

public interface TradeStrategy {
    StrategyCode getStrategyCode();

    /**
     * 指标选股
     * 1。计算指标
     * 2。利用指标给出买卖信号
     * */
    IndicatorResult exec(Bar bar, TradeSystemContext tradeSystemContext);

    StrategyResult exec(String code, IndicatorResult indicatorResult, TradeSystemContext tradeSystemContext);

    void updateEnd(TradeSystemContext tradeSystemContext);
}
